<?php
	require_once("conf/glob_conf.php");
    exit;
    require_once("MDB2.php");

	$dsn = 'mysql://root:abc123@localhost/fpm';
	$options = array(
    'debug' => 2,
    'result_buffering' => false,
	);

		$mdb2 =& MDB2::factory($dsn, $options);
	if (PEAR::isError($mdb2)) {
		die($mdb2->getMessage());
	}

	// ...
	$res =& $mdb2->query('SELECT * FROM  fpm_project');

	// Get each row of data on each iteration until
	// there are no more rows
	while (($row = $res->fetchRow())) {
		// Assuming MDB2's default fetchmode is MDB2_FETCHMODE_ORDERED
		echo $row[0] . "\n";
}

	echo "hello";
	$mdb2->disconnect();

?>